package com.gimi.cloud.bbp.manage.consumer.service.sys;

import com.gimi.cloud.bbp.common.utils.reqhead.Response;
import com.gimi.cloud.bbp.dto.sys.SysMasterDTO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 管理员相关的接口
 *
 * @author wbj
 * @version 1.0
 * @Description
 * @create 2018-01-26
 **/
public interface SysMasterService {

    /**
     * 获取管理员列表数据
     * @param request
     * @param response
     * @param masterDTO 查询参数
     * @throws Exception
     */
    Response getMasterList(HttpServletRequest request, HttpServletResponse response, SysMasterDTO masterDTO) throws  Exception;

    /**
     * 获取管理员信息
     * @param request
     * @param response
     * @param masterDTO 查询参数  maId不能为空
     * @throws Exception
     */
    Response getMasterInfo(HttpServletRequest request,HttpServletResponse response,SysMasterDTO masterDTO) throws  Exception;

    /**
     * 添加管理员信息
     * @param request
     * @param response
     * @param masterDTO  待添加的管理员信息
     * @throws Exception
     */
    Response addMaster(HttpServletRequest request,HttpServletResponse response,SysMasterDTO masterDTO)  throws  Exception;

    /**
     * 编辑管理员数据
     * @param request
     * @param response
     * @param masterDTO 待修改的管理员信息
     * @throws Exception
     */
    Response editMaster(HttpServletRequest request,HttpServletResponse response,SysMasterDTO masterDTO) throws  Exception;

    /**
     * 删除管理员信息
     * @param request
     * @param response
     * @param masterDTO 待删除的管理员信息
     * @throws Exception
     */
    Response deleteMaster(HttpServletRequest request,HttpServletResponse response,SysMasterDTO masterDTO) throws  Exception;
}
